"use strict";
cc._RF.push(module, '7c127O4BelOEJ0va+YPLUah', 'PromiseUtil');
// eazax-ccc/utils/PromiseUtil.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Promise 工具
 * @see PromiseUtil.ts https://gitee.com/ifaswind/eazax-ccc/blob/master/utils/PromiseUtil.ts
 */
var PromiseUtil = /** @class */ (function () {
    function PromiseUtil() {
    }
    /**
     * 等待
     * @param time 时长（秒）
     * @example
     * await PromiseUtil.wait(1);
     */
    PromiseUtil.wait = function (time) {
        return new Promise(function (res) { return cc.Canvas.instance.scheduleOnce(res, time); });
    };
    return PromiseUtil;
}());
exports.default = PromiseUtil;

cc._RF.pop();